package com.fitns.user.exception;

public class ServiceException extends BaseException {
    private static final long serialVersionUID = -6318707384982225111L;

    public ServiceException(MsgCode msgCode) {
        super(msgCode);
    }
    public ServiceException(String message) {
        this(CommMsgCode.SERVICE_ERROR, message);
    }

    public ServiceException(MsgCode code, String message) {
        super(code, message);
    }

    public static ServiceException create(String msgCode) {
        return new ServiceException(msgCode);
    }
    public static ServiceException create(MsgCode msgCode) {
        return new ServiceException(msgCode);
    }
}
